﻿<%@ Page Language="C#" MasterPageFile="~/login/LoginMasterPage.master" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="Com.Web.coffinegurunaru.login.login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">


<table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="33">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="/images/member/tit_02.gif" width="359" height="47"></td>
          </tr>
          <tr>
            <td height="30">&nbsp;</td>
          </tr>
          <tr>
            <td align="center"><table width="80%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td height="50"><img src="/images/member/txt_25.gif" width="296" height="31"></td>
              </tr>
            </table>
              <table width="80%" border="0" cellspacing="1" cellpadding="0" bgcolor="#e3e3e3">
              <tr>
                <td align="center" bgcolor="#ffffff"><table border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="center"><table border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td height="50">&nbsp;</td>
                        <td>&nbsp;</td>
                        <td>&nbsp;</td>
                      </tr>
                      <tr>
                        <td width="60" height="25"><img src="/images/member/txt_26.gif" width="43" height="13"></td>
                        <td><input type='text' style="width:190px;" class='formmail_border' name='add4' maxlength='20' size='25' value='' id="m_UserID" tabindex="1" maxlength="16" onfocus="$(this).select()"></td>
                        <td width="90" rowspan="2" align="right"><a href="#" tabindex="3"><img src="/images/member/bt_login1.gif" width="85" height="47" id="m_btnLogin"></a></td>
                      </tr>
                      <tr>
                        <td height="25"><img src="/images/member/txt_27.gif" width="43" height="13"></td>
                        <td><input type='password' style="width:190px;" class='formmail_border' name='add' maxlength='20' size='25' value='' id="m_UserPWD" tabindex="2" maxlength="16" onfocus="$(this).select()"></td>
                      </tr>
                      <tr>
                        <td height="25">&nbsp;</td>
                        <td><table border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="65"><a href="#" onclick="$.Coffine.searchid(); return false;"><img src="/images/member/bt_id.gif" width="57" height="13"></a></td>
                            <td width="1" bgcolor="#c6c6c6"><img src="/images/common/clear.gif" width="1" height="1"></td>
                            <td width="73" align="right"><a href="#" onclick="$.Coffine.searchpwd(); return false;"><img src="/images/member/bt_pw.gif" width="68" height="13"></a></td>
                          </tr>
                        </table></td>
                        <td align="center">&nbsp;</td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td width="64" height="60" align="center"><img src="/images/member/login_line.gif" width="372" height="3"></td>
                  </tr>
                  <tr>
                    <td align="center"><img src="/images/member/txt_28.gif" width="195" height="15" align="absmiddle"> <a href="/member/join_01.aspx"><img src="/images/member/bt_member.gif" width="130" height="25" align="absmiddle"></a></td>
                  </tr>
                  <tr>
                    <td height="30">&nbsp;</td>
                    </tr>
                </table></td>
              </tr>
            </table>
              <table width="98%" border="0" cellspacing="0" cellpadding="0">
              </table></td>
          </tr>
        </table>
<script language="javascript" type="text/javascript">
(function($) {
	$(function() {
		$("#m_btnLogin").click(function() {
			if ( $.trim( $("#m_UserID").val() ) == "" )
			{
				alert("아이디를 입력하세요.");
				$("#m_UserID").focus();
				return false;
			}
			
			if ( $.trim( $("#m_UserID").val() ).length < 4 )
			{
				alert("아이디 4글자 이상 입력하셔야합니다.");
				$("#m_UserID").focus();
				return false;
			}
			
			if ( $.trim( $("#m_UserPWD").val() ) == "" )
			{
				alert("비밀번호를 입력하세요");
				$("#m_UserID").focus();
				return false;
			}
			if ( $.trim( $("#m_UserPWD").val() ).length < 4 )
			{
				alert("비밀번호는 4글자 이상 입력하셔야합니다.");
				$("#m_UserID").focus();
				return false;
			}

			$.Coffine.Login($("#m_UserID").val(), $("#m_UserPWD").val(), "<%=Redirect%>" );
			return false;
		});

		$("#m_UserPWD").keypress(function( e ) {
			if ( e.keyCode == 13 )
			{
				$("#m_btnLogin").click();
			}
		});
	});
})(jQuery);
</script>


</asp:Content>
